package com.lrs.java.j2se_self.collection;

import java.util.*;
public class TestList {
	public static void main(String[] agrs){
		List c = new LinkedList();
		c.add("a0");
		c.add("a1");
		c.add("a3");
		c.add("a4");
		c.add("a1");
		for(int i=0;i<6;i++){
			c.add("a"+i);
		}
		//System.out.println(c.indexOf("a0"));
		System.out.println(c);
		System.out.println(c.set(2,"a2"));
		c.add(2,"fsfd");
		//System.out.println(c.get(3));
		System.out.println(c);
	}
}
